<template>
  <button @click="emitEvent">Emit Event</button>
</template>

<script setup>
const emit = defineEmits(['custom-event']);
let i = 0
function emitEvent() {
  i++
  emit('custom-event', 'Updated Value from Child'+i);
}
</script>
